/*package com.wonyesoft.wuliu.acticity.order;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javabeen.PushMessage;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import com.baidu.android.pushservice.PushMessageReceiver;
import com.google.gson.Gson;
import com.wonyesoft.wuliu.AppContent;


*//**
 * * @author 作者 陈修园:
 * 
 * @date 创建时间：2015-4-16 下午1:30:56
 * @version 1.0
 * @since
 * @return
 *//*
public class pushMessagetczh extends PushMessageReceiver {

	*//** TAG to Log *//*
	public static final String TAG = pushMessagetczh.class.getSimpleName();

	@Override
	public void onBind(Context context, int errorCode, String appid,
			String userId, String channelId, String requestId) {
		// TODO Auto-generated method stub
		
		String responseString = "onBind errorCode=" + errorCode + " appid="
				+ appid + " userId=" + userId + " channelId=" + channelId
				+ " requestId=" + requestId;
		Log.d(TAG, "绑定成功+" + responseString);
	//	GagApi.channelId = channelId;
		AppContent app;
		app = (AppContent) context.getApplicationContext();
		app.channelId = channelId;
		app.messagepushuserId = userId;
		app.InPutPushMessage(channelId, userId);
		
	}

	@Override
	public void onDelTags(Context arg0, int arg1, List<String> arg2,
			List<String> arg3, String arg4) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onListTags(Context arg0, int arg1, List<String> arg2,
			String arg3) {
		// TODO Auto-generated method stub

	}

	*//**
	 * 接收透传消息的函数。
	 * 
	 * @param context
	 *            上下文
	 * @param message
	 *            推送的消息
	 * @param customContentString
	 *            自定义内容,为空或者json字符串
	 *//*
	@Override
	public void onMessage(Context context, String message,
			String customContentString) {
		// TODO Auto-generated method stub
	}

	@Override
	public void onNotificationClicked(Context arg0, String arg1, String arg2,
			String arg3) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onSetTags(Context arg0, int arg1, List<String> arg2,
			List<String> arg3, String arg4) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onUnbind(Context arg0, int arg1, String arg2) {
		// TODO Auto-generated method stub

	}

	private void updateContent(Context context, String content) {

		// AppContent app=content.g
		// content
		// context.getApplication();
		AppContent app;
		app = (AppContent) context.getApplicationContext();
		Gson gson = new Gson();
		PushMessage pushMessage = gson.fromJson(content, PushMessage.class);
		String type = pushMessage.getType();
		if (type.equals("neworder")) {
			// boolean flag=true;
			// app.SetPushMessage(flag);
			Bundle bundle = new Bundle();
			bundle.putSerializable("orderMessage", pushMessage);

//		
			bundle.putString("State", "1");
			bundle.putString("Is_play_sound", "play");
			Intent intent = new Intent();
			intent.setClass(context.getApplicationContext(), OrderDetails.class);
			intent.putExtras(bundle);
			intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			context.getApplicationContext().startActivity(intent);
			app.New_Order_Push=true;
			// context.getApplicationContext().startService(intent2);
		
			//	app.IniOrderLastTimeReceiver(pushMessage.getOrderId());
			// app.SetPushMessage(true,pushMessage.getMessage(),STR_Content);
		}
		
			
			
			// intent.setClass(context.getApplicationContext(),
			// MyOrderListActivity.class);
			// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			// context.getApplicationContext().startActivity(intent);
		}

		

	}

	private void UpdateToService(String channelId) {
		Map<String, Object> dataMap = new HashMap<String, Object>();
		// JsonReader jr=JsonRequest.getInit();
		// dataMap.put(arg0, arg1)
	}

	@Override
	public void onNotificationArrived(Context arg0, String arg1, String arg2,
			String arg3) {
		// TODO Auto-generated method stub
		
	}

	

}
*/